import javax.swing.JApplet;
import java.awt.Graphics;
import java.awt.*;


public class app2 extends JApplet {

    /**
	 * Create the applet.
	 */
	public app2() {
	
	}
    
	Image duke;
	
	public void init() {
	    duke = getImage(getDocumentBase(),"th.jpg");
	}
	
	public void paint(Graphics g) {
	    g.drawImage(duke, 25, 25, this);
	}
}